package com.internetCafes.spms.web.tenant.service;

import com.internetCafes.spms.core.model.pageModel.DataGrid;
import com.internetCafes.spms.web.tenant.model.TenantRoleInfo;

import java.util.List;
import java.util.Map;

/**
 * 租户角色信息
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-31 18:09:54
 */
public interface TenantRoleInfoService {

    /**
     * 查询
     */
    public List<TenantRoleInfo> query(Map<String, Object> params);

    /**
     * ID查询
     */
    public TenantRoleInfo findById(Long id);

    /**
     * ID批量查询
     */
    public List<TenantRoleInfo> queryByIds(List<Long> ids);

    /**
     * 参数分页查询
     */
    public List<TenantRoleInfo> page(Map<String, Object> params, int page, int rows);

    /**
     * 参数查询总数
     */
    public long count(Map<String, Object> params);

    /**
     * First查询
     */
    public TenantRoleInfo findFirst(Map<String, Object> params);

    /**
     * 保存
     */
    public int save(TenantRoleInfo tenantRoleInfo);

    /**
     * 批量保存
     */
    public int saveBatch(List<TenantRoleInfo> tenantRoleInfoList);

    /**
     * 选择保存
     */
    public int saveSelective(TenantRoleInfo tenantRoleInfo);

    /**
     * 修改
     */
    public int update(TenantRoleInfo tenantRoleInfo);

    /**
     * 选择修改
     */
    public int updateSelective(TenantRoleInfo tenantRoleInfo);

    /**
     * 删除
     */
    public int delete(Long id);

    /**
     * 批量删除
     */
    public int deleteBatch(List<Long> ids);

    /**
     * 批量删除
     */
    public void deleteBatch(Long[] ids);


    /**
     * DataGrid
     */
    public DataGrid dataGrid(Map<String, Object> params, int pageNo, int pageSize);
}
